* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: Arial, Helvetica, sans-serif;
    background: #f7f7f7;
    color: #202020;
}

/* =====================================================
                    TOP BAR
===================================================== */

.top-bar{
    width:100%;
    min-height:42px;

    background:#111827;
    color:white;

    display:flex;
    align-items:center;
    justify-content:space-between;

    padding:0 5%;

    font-size:13px;
}

.top-left{
    display:flex;
    align-items:center;
    gap:24px;
}

.top-left a{
    color:#e5e7eb;
text-decoration: none;
    display:flex;
    align-items:center;
    gap:7px;

    transition:.3s;
}

.top-left a:hover{
    color:#3b82f6;
}

.top-left i{
    color:#4f8cff;
}


.top-right{
    display:flex;
    align-items:center;
    gap:12px;
}

.top-right span{
    color:#cbd5e1;
}

.top-right a{
    width:27px;
    height:27px;
text-decoration: none;
    display:flex;
    align-items:center;
    justify-content:center;

    border-radius:50%;

    color:white;

    transition:.3s;
}

.top-right a:hover{
    background:#2878ff;
    transform:translateY(-2px);
}


/* =====================================================
                    NAVBAR
===================================================== */

.navbar{
    width:100%;
    height:82px;

    background:white;

    display:flex;
    align-items:center;

    padding:0 5%;

    gap:35px;

    position:sticky;
    top:0;

    z-index:1000;

    box-shadow:0 5px 20px rgba(0,0,0,.07);
}


/* LOGO */

.logo{
    font-size:30px;
    font-weight:800;

    color:#111827;

    white-space:nowrap;
}

.logo span{
    color:#2878ff;
}


/* NAV MENU */

.nav-menu{
    display:flex;
    align-items:center;
    gap:25px;
text-decoration: none;
    margin-right:auto;
}

.nav-link{
    color:#374151;
    font-size:15px;
    font-weight:600;
text-decoration: none;
    position:relative;
    transition:.3s;
}

.nav-link::after{
    content:"";

    position:absolute;

    left:0;
    bottom:-8px;

    width:0;
    height:2px;

    background:#2878ff;

    transition:.3s;
}

.nav-link:hover,
.nav-link.active{
    color:#2878ff;
}

.nav-link:hover::after,
.nav-link.active::after{
    width:100%;
}


/* NAV RIGHT */

.nav-right{
    display:flex;
    align-items:center;
    gap:12px;
}


/* =====================================================
                    HOT DEAL BUTTON
===================================================== */

.hot-deals{
    background:#ff4d4d;
    color:white;

    padding:11px 16px;

    border-radius:6px;

    display:flex;
    align-items:center;
    gap:7px;

    font-size:14px;
    font-weight:bold;

    transition:.3s;
}

.hot-deals:hover{
    background:#e63939;
    transform:translateY(-2px);
}

.hot-deals i{
    font-size:14px;
}


/* =====================================================
                    SEARCH
===================================================== */

.search-container{
    height:42px;

    display:flex;
    align-items:center;

    border:1px solid #ddd;

    border-radius:6px;

    overflow:hidden;

    background:white;
}

.search-container input{
    width:190px;
    height:100%;

    border:none;
    outline:none;

    padding:0 13px;

    font-size:14px;
}

.search-container button{
    width:45px;
    height:100%;

    border:none;

    background:#2878ff;
    color:white;

    cursor:pointer;

    transition:.3s;
}

.search-container button:hover{
    background:#145ed2;
}


/* =====================================================
                    ICON BUTTON
===================================================== */

.icon-btn{
    width:42px;
    height:42px;

    border:none;

    background:#f2f5fa;

    border-radius:6px;

    position:relative;

    cursor:pointer;

    font-size:17px;

    color:#374151;

    transition:.3s;
}

.icon-btn:hover{
    color:#2878ff;
    background:#e9f0ff;
}


/* COUNTER */

.counter{
    position:absolute;

    top:-6px;
    right:-5px;

    min-width:18px;
    height:18px;

    padding:0 4px;

    background:#2878ff;
    color:white;

    border-radius:20px;

    font-size:10px;
    font-weight:bold;

    display:flex;
    align-items:center;
    justify-content:center;
}


/* =====================================================
                    MOBILE MENU BUTTON
===================================================== */

.menu-toggle{
    display:none;

    width:42px;
    height:42px;

    border:none;

    background:#f2f5fa;

    border-radius:6px;

    font-size:19px;

    cursor:pointer;
}


/* =====================================================
                    PRODUCTS
===================================================== */

.products{
    padding:80px 5%;
}

.section-heading{
    text-align:center;
    margin-bottom:45px;
}

.section-heading p{
    color:#2878ff;
    font-size:13px;
    font-weight:bold;
    letter-spacing:2px;

    margin-bottom:10px;
}

.section-heading h1{
    font-size:38px;
}


.product-container{
    display:grid;
    grid-template-columns:repeat(3,1fr);
    gap:25px;
    max-width:1200px;
    margin:auto;
}

.product-card{
    background:white;

    border-radius:10px;

    overflow:hidden;

    box-shadow:0 10px 25px rgba(0,0,0,.07);

    transition:.3s;
}

.product-card:hover{
    transform:translateY(-7px);
}

.product-image{
    height:250px;
    overflow:hidden;
}

.product-image img{
    width:100%;
    height:100%;

    object-fit:cover;

    transition:.5s;
}

.product-card:hover img{
    transform:scale(1.08);
}

.product-info{
    padding:20px;
}

.product-info h3{
    margin-bottom:10px;
}

.product-info p{
    font-size:20px;
    font-weight:bold;

    color:#2878ff;

    margin-bottom:15px;
}

.add-cart{
    width:100%;

    border:none;

    background:#2878ff;
    color:white;

    padding:12px;

    border-radius:5px;

    cursor:pointer;

    font-weight:bold;
}

.add-cart:hover{
    background:#125ed8;
}


/* =====================================================
                    DEAL
===================================================== */

.deal{
    min-height:320px;

    display:flex;
    align-items:center;
    justify-content:center;

    text-align:center;

    color:white;

    background:
    linear-gradient(
        rgba(0,0,0,.65),
        rgba(0,0,0,.65)
    ),
    url("https://images.unsplash.com/photo-1498049794561-7780e7231661?auto=format&fit=crop&w=1600&q=80");

    background-size:cover;
    background-position:center;
}

.deal p{
    color:#61a2ff;

    font-size:14px;
    letter-spacing:3px;

    font-weight:bold;
}

.deal h2{
    font-size:55px;
    margin:10px 0 20px;
}

.deal button{
    border:none;

    background:#2878ff;
    color:white;

    padding:13px 28px;

    border-radius:5px;

    cursor:pointer;
}


/* =====================================================
                    CART POPUP
===================================================== */

.cart-popup{
    display:none;

    position:fixed;

    inset:0;

    background:rgba(0,0,0,.55);

    z-index:2000;

    justify-content:flex-end;
}

.cart-popup.active{
    display:flex;
}

.cart-box{
    width:420px;
    max-width:100%;

    height:100%;

    background:white;

    padding:25px;

    overflow-y:auto;
}

.cart-header{
    display:flex;
    align-items:center;
    justify-content:space-between;

    padding-bottom:18px;

    border-bottom:1px solid #ddd;
}

.cart-header button{
    border:none;
    background:none;

    font-size:22px;

    cursor:pointer;
}

.cart-item{
    display:flex;
    align-items:center;
    justify-content:space-between;

    padding:18px 0;

    border-bottom:1px solid #eee;
}

.cart-item h4{
    margin-bottom:6px;
}

.remove-item{
    border:none;

    background:#ffe8e8;
    color:#e11d48;

    padding:7px 10px;

    border-radius:4px;

    cursor:pointer;
}

.empty-cart{
    padding:60px 0;

    text-align:center;

    color:#777;
}

.cart-bottom{
    margin-top:25px;
}

.cart-bottom h3{
    margin-bottom:20px;
}

.cart-bottom button{
    width:100%;

    border:none;

    padding:13px;

    background:#2878ff;
    color:white;

    border-radius:5px;

    cursor:pointer;

    font-weight:bold;
}


/* =====================================================
                    RESPONSIVE
===================================================== */

@media(max-width:1100px){

    .nav-menu{
        gap:15px;
    }

    .search-container input{
        width:140px;
    }

    .top-left{
        gap:15px;
    }

}


@media(max-width:900px){

    .top-left a:nth-child(3){
        display:none;
    }

    .nav-menu{
        position:absolute;

        left:0;
        top:82px;

        width:100%;

        background:white;

        display:none;

        flex-direction:column;

        padding:25px;

        box-shadow:0 10px 20px rgba(0,0,0,.08);
    }

    .nav-menu.active{
        display:flex;
    }

    .nav-link::after{
        display:none;
    }

    .menu-toggle{
        display:block;
    }

    .product-container{
        grid-template-columns:repeat(2,1fr);
    }

}


@media(max-width:650px){

    .top-bar{
        padding:8px 4%;

        flex-direction:column;
        gap:7px;
    }

    .top-left{
        justify-content:center;
        flex-wrap:wrap;
    }

    .top-right{
        display:none;
    }

    .navbar{
        height:72px;
        padding:0 4%;
        gap:10px;
    }

    .nav-menu{
        top:72px;
    }

    .logo{
        font-size:23px;
    }

    .hot-deals{
        padding:10px;
    }

    .hot-deals{
        font-size:0;
    }

    .hot-deals i{
        font-size:15px;
    }

    .search-container input{
        display:none;
    }

    .search-container button{
        width:42px;
    }

    .product-container{
        grid-template-columns:1fr;
    }

    .section-heading h1{
        font-size:30px;
    }

    .deal h2{
        font-size:40px;
    }

}


@media(max-width:400px){

    .icon-btn,
    .menu-toggle,
    .search-container,
    .hot-deals{
        width:38px;
        height:38px;
    }

    .hot-deals{
        display:flex;
        justify-content:center;
        padding:0;
    }

}



 /* =====================================================
        ELECTRONICS CATEGORY ROLLING SECTION
===================================================== */

.category-slider{
    width:100%;
    height:205px;

    background:#07062d;

    position:relative;

    display:flex;
    align-items:center;

    overflow:hidden;

    padding:0 45px;
}


/* ================= TRACK WRAPPER ================= */

.category-track-wrapper{
    width:100%;
    overflow:hidden;
}


/* ================= TRACK ================= */

.category-track{
    display:flex;
    align-items:center;

    gap:48px;

    width:max-content;

    will-change:transform;
}


/* ================= CATEGORY ITEM ================= */

.category-item{
    width:145px;
    min-width:145px;

    display:flex;
    flex-direction:column;
    align-items:center;

    color:white;

    text-decoration:none;

    text-align:center;

    cursor:pointer;
}


/* ================= CIRCLE ================= */

.category-circle{
    width:125px;
    height:125px;

    border-radius:50%;

    background:#dff5f7;

    display:flex;
    align-items:center;
    justify-content:center;

    overflow:hidden;

    border:4px solid rgba(255,255,255,.18);

    transition:.35s;
}


.category-circle img{
    width:100%;
    height:100%;

    object-fit:cover;

    mix-blend-mode:multiply;

    transition:.4s;
}


/* ================= HERO ================= */

.computer-hero {
    min-height: 450px;

    display: flex;

    background: #111;
}

.hero-content {
    width: 50%;

    padding: 65px 7%;

    color: white;

    display: flex;

    flex-direction: column;

    justify-content: center;
}

.hero-content > p:first-child {
    color: #e40018;

    letter-spacing: 3px;

    font-weight: bold;

    margin-bottom: 18px;
}

.hero-content h1 {
    font-size: 52px;

    line-height: 1.1;
}

.hero-content h1 span {
    color: #e40018;
}

.hero-line {
    width: 70px;
    height: 4px;

    background: #e40018;

    margin: 23px 0;
}

.hero-description {
    max-width: 530px;

    color: #bbb;

    font-size: 16px;

    line-height: 1.7;
}

.hero-content button {
    width: 220px;

    padding: 14px;

    margin-top: 25px;

    border: none;

    border-radius: 5px;

    background: #e40018;

    color: white;

    font-weight: bold;

    cursor: pointer;

    transition: .3s;
}

.hero-content button:hover {
    background: white;

    color: #e40018;
}

.hero-image {
    width: 50%;
}

.hero-image img {
    width: 100%;
    height: 100%;

    object-fit: cover;
}


/* ================= SECTION TITLE ================= */

.section-title {
    text-align: center;

    margin-bottom: 40px;
}

.section-title p {
    color: #e40018;

    font-size: 13px;

    letter-spacing: 2px;

    font-weight: bold;
}

.section-title h2 {
    font-size: 34px;

    margin-top: 8px;
}

.section-title h2 span {
    color: #e40018;
}


/* ================= COMPUTER TYPES ================= */

.computer-types {
    width: 90%;

    margin: 65px auto;
}

.type-grid {
    display: grid;

    grid-template-columns: repeat(5, 1fr);

    gap: 20px;
}

.type-card {
    background: white;

    padding: 15px;

    border-radius: 16px;

    text-align: center;

    box-shadow:
        0 5px 18px rgba(0,0,0,.08);

    cursor: pointer;

    transition: .4s;
}

.type-card:hover {
    transform: translateY(-9px);

    box-shadow:
        0 15px 30px rgba(0,0,0,.14);
}

.type-image {
    height: 135px;

    overflow: hidden;

    border-radius: 12px;
}

.type-image img {
    width: 100%;
    height: 100%;

    object-fit: cover;

    transition: .5s;
}

.type-card:hover img {
    transform: scale(1.1);
}

.type-card h3 {
    margin-top: 15px;

    font-size: 18px;
}

.type-card p {
    color: #888;

    font-size: 13px;

    margin-top: 6px;
}


/* ================= COLLECTION ================= */

.collection-section {
    width: 92%;

    margin: 70px auto;
}

.collection-top {
    display: flex;

    justify-content: space-between;

    align-items: end;

    margin-bottom: 30px;
}

.collection-top p {
    color: #e40018;

    font-size: 13px;

    letter-spacing: 2px;

    font-weight: bold;
}

.collection-top h2 {
    font-size: 34px;

    margin: 8px 0;
}

.collection-top h2 span {
    color: #e40018;
}

.collection-top small {
    color: #888;
}

.collection-top select {
    padding: 13px 18px;

    border: 1px solid #ddd;

    border-radius: 7px;

    background: white;

    outline: none;

    cursor: pointer;
}


/* ================= LAYOUT ================= */

.collection-layout {
    display: grid;

    grid-template-columns: 230px 1fr;

    gap: 25px;

    align-items: start;
}


/* ================= FILTER ================= */

.filter-box {
    background: white;

    border-radius: 15px;

    padding: 25px;

    box-shadow:
        0 5px 15px rgba(0,0,0,.08);

    position: sticky;

    top: 20px;
}

.filter-box h3 {
    font-size: 20px;
}

.filter-line {
    height: 1px;

    background: #ddd;

    margin: 18px 0;
}

.filter-box h4 {
    margin: 22px 0 12px;

    font-size: 15px;
}

.filter-box label {
    display: block;

    color: #666;

    margin: 11px 0;

    font-size: 14px;

    cursor: pointer;
}

.filter-box input {
    margin-right: 8px;

    accent-color: #e40018;
}

.clear-btn {
    width: 100%;

    padding: 10px;

    border: 1px solid #e40018;

    background: white;

    color: #e40018;

    border-radius: 5px;

    margin-top: 20px;

    cursor: pointer;
}

.clear-btn:hover {
    background: #e40018;

    color: white;
}


/* ================= PRODUCTS ================= */

.computer-products {
    display: grid;

    grid-template-columns: repeat(3, 1fr);

    gap: 22px;
}

.computer-product {
    position: relative;

    background: white;

    border-radius: 17px;

    padding: 16px;

    box-shadow:
        0 5px 18px rgba(0,0,0,.09);

    transition: .35s;
}

.computer-product:hover {
    transform: translateY(-8px);

    box-shadow:
        0 16px 30px rgba(0,0,0,.15);
}


/* OFFER */

.offer {
    position: absolute;

    top: 14px;
    left: 14px;

    padding: 7px 9px;

    background: #e40018;

    color: white;

    border-radius: 8px;

    font-size: 12px;

    font-weight: bold;

    z-index: 2;
}


/* HEART */

.heart {
    position: absolute;

    right: 14px;
    top: 14px;

    width: 36px;
    height: 36px;

    border: none;

    border-radius: 50%;

    background: white;

    box-shadow: 0 3px 12px #ddd;

    font-size: 21px;

    cursor: pointer;

    z-index: 2;
}

.heart.active {
    color: #e40018;
}


/* PRODUCT IMAGE */

.product-image {
    height: 215px;

    display: flex;

    align-items: center;

    justify-content: center;

    overflow: hidden;
}

.product-image img {
    width: 100%;
    height: 100%;

    object-fit: contain;

    transition: .4s;
}

.computer-product:hover .product-image img {
    transform: scale(1.08);
}


/* PRODUCT INFO */

.brand-name {
    color: #e40018;

    font-size: 12px;

    font-weight: bold;

    margin-top: 10px;
}

.computer-product h3 {
    color: #174f70;

    font-size: 17px;

    line-height: 1.4;

    min-height: 48px;

    margin: 8px 0;
}

.rating {
    color: #f3a500;

    font-size: 14px;
}

.rating span {
    color: #999;
}

.old-price {
    color: #888;

    font-size: 13px;

    margin-top: 10px;
}

.product-price {
    color: #df0018;

    font-size: 25px;

    font-weight: bold;

    margin-top: 5px;
}

.tax {
    color: #999;

    font-size: 12px;

    margin: 6px 0 12px;
}


/* ADD BUTTON */

.add-btn {
    width: 100%;

    padding: 12px;

    border: 1px solid #e40018;

    background: white;

    color: #e40018;

    border-radius: 5px;

    font-weight: bold;

    cursor: pointer;

    transition: .3s;
}

.add-btn:hover {
    background: #e40018;

    color: white;
}


/* ================= FEATURES ================= */

.computer-features {
    width: 90%;

    margin: 70px auto;

    background: white;

    border-radius: 15px;

    padding: 30px;

    display: grid;

    grid-template-columns: repeat(4, 1fr);

    gap: 20px;

    box-shadow:
        0 5px 18px rgba(0,0,0,.08);
}

.feature {
    display: flex;

    gap: 15px;

    align-items: center;

    padding: 10px;
}

.feature > i {
    color: #e40018;

    font-size: 28px;
}

.feature h3 {
    font-size: 16px;
}

.feature p {
    color: #888;

    font-size: 13px;

    margin-top: 5px;
}


/* ================= STATS ================= */

.stats {
    width: 90%;

    margin: 70px auto;

    padding: 40px 0;

    border-top: 1px solid #ddd;

    display: grid;

    grid-template-columns:
        repeat(4, 1fr);

    text-align: center;
}

.stats strong {
    display: block;

    color: #df0018;

    font-size: 42px;

    font-weight: 900;
}

.stats span {
    display: block;

    color: #555;

    margin-top: 8px;

    font-size: 17px;
}
.stats p {
    grid-column: 1 / -1;

    margin: 0;

    color: #666;

    font-size: 16px;

    line-height: 1.8;

    text-align: justify;

    padding: 0 10px;
}
.stats p + p {
    margin-top: -15px;
}


/* MOBILE */

@media (max-width: 768px) 

{

    .stats {
        grid-template-columns: repeat(2, 1fr);

        width: 94%;

        padding: 30px 20px;
    }

}
/* ================= WHATSAPP ================= */

.whatsapp {
    position: fixed;

    right: 25px;
    bottom: 25px;

    width: 80px;

    text-decoration: none;

    z-index: 100;
}

.whatsapp span,
.whatsapp b {
    display: block;

    text-align: center;
}

.whatsapp span {
    font-weight: bold;
}

.whatsapp b {
    color: #d80018;
}

.whatsapp i {
    display: flex;

    justify-content: center;
    align-items: center;

    width: 62px;
    height: 62px;

    margin: auto;

    background: #25d366;

    color: white;

    border-radius: 8px;

    font-size: 40px;

    box-shadow: 0 5px 15px rgba(0,0,0,.2);
}



/* ================= FOOTER ================= */

footer {
    background: #171717;

    color: white;

    padding: 60px 8%;

    display: grid;

    grid-template-columns:
        2fr 1fr 1fr 2fr;

    gap: 50px;
}

.footer-logo h2 {
    color: #e50019;

    font-size: 30px;
}

.footer-logo p {
    color: #e50019;

    font-size: 20px;

    font-weight: bold;
}

footer h3 {
    margin-bottom: 20px;
}

footer a {
    display: block;

    color: #bbb;

    text-decoration: none;

    margin-bottom: 12px;
}

footer a:hover {
    color: white;
}

footer p {
    color: #bbb;

    margin-bottom: 10px;
}





/* ================= RESPONSIVE ================= */

@media(max-width:1200px) {

    .support {
        display: none;
    }

    .type-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .computer-products {
        grid-template-columns: repeat(2, 1fr);
    }

}


@media(max-width:900px) {

    .top-bar {
        display: none;
    }

    .header {
        flex-wrap: wrap;

        padding: 20px;
    }

    .search-box {
        order: 5;

        width: 100%;

        max-width: none;
    }

    .computer-hero {
        flex-direction: column;
    }

    .hero-content,
    .hero-image {
        width: 100%;
    }

    .hero-content {
        min-height: 380px;
    }

    .hero-image {
        height: 300px;
    }

    .collection-layout {
        grid-template-columns: 1fr;
    }

    .filter-box {
        position: static;
    }

    .computer-features {
        grid-template-columns: repeat(2, 1fr);
    }

    footer {
        grid-template-columns: repeat(2, 1fr);
    }

}


@media(max-width:600px) {

    .logo h1 {
        font-size: 27px;
    }

    .logo h2 {
        font-size: 19px;
    }

    .hot-btn {
        padding: 0 12px;

        font-size: 12px;
    }

    .header-action .action {
        display: none;
    }

    .hero-content {
        padding: 45px 7%;
    }

    .hero-content h1 {
        font-size: 35px;
    }

    .type-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .collection-top {
        flex-direction: column;

        align-items: flex-start;

        gap: 20px;
    }

    .collection-top h2 {
        font-size: 28px;
    }

    .computer-products {
        grid-template-columns: 1fr;
    }

    .computer-features {
        grid-template-columns: 1fr;
    }

    footer {
        grid-template-columns: 1fr;
    }

}